/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cz.gps;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import java.util.Date;

/**
 *
 * @author stana
 */
public class SaveFileDialog extends Dialog {

    public SaveFileDialog(Context context)
    {
        super(context);
    }
    private EditText fileEditText;
    private Button saveButton;
     private Button cancelButton;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.savefiledialog);
       // infoText=(TextView)findViewById(R.id.infoText);
       // fileNameText=(TextView)findViewById(R.id.fileNameText);
        saveButton=(Button) findViewById(R.id.saveButton);
        cancelButton=(Button) findViewById(R.id.cancelButton);
        fileEditText=(EditText) findViewById(R.id.fileEditText);
        fileEditText.setText(new Date().toGMTString());
    }

    public Button getSaveButton()
    {
        return saveButton;
    }

    public Button getCancelButton()
    {
        return cancelButton;
    }
    public String getFileName()
    {
        return fileEditText.getText().toString();
    }

}
